import WQRequest from "@/service";
//台账列表
export function getequipmentmanagementpage(data) {
    return WQRequest.post({
        url: "basicsbelowcarparameter/getequipmentmanagementpage",
        data
    });
}

//台账增加
export function addequipmentmanagement(data) {
    return WQRequest.post({
        url: "basicsbelowcarparameter/addequipmentmanagement",
        data
    });
}
//台账修改
export function editequipmentmanagement(data) {
    return WQRequest.post({
        url: "basicsbelowcarparameter/editequipmentmanagement",
        data
    });
}
//设备类型
export function getequipmenttypelist(data) {
    return WQRequest.get({
        url: "equipmentmanagement/getequipmenttypelist",
        params: data
    });
}
export function getequipmentarealocationlist(params) {
    return WQRequest.get({
        url: "equipmentmanagement/getequipmentarealocationlist",
        params
    });
}
export function getequipmentinstalllocationlist(data) {
    return WQRequest.get({
        url: "equipmentmanagement/getequipmentinstalllocationlist",
        params: data
    });
}
//获取设备管理员
export function getlistasync(data) {
    return WQRequest.get({
        url: "basicssysuser/getlistasync",
        params: data
    });
}
//设备台账详情
export function getequipmentmanagementdetail(data) {
    return WQRequest.post({
        url: "equipmentmanagement/getequipmentmanagementdetail",
        data
    });
}
//设计资料-文件夹子项列表展示
export function getdesigninformationpage(data) {
    return WQRequest.post({
        url: "equipmentmanagement/getrelationresourcelist",
        data
    });
}
export function upload(data) {
    return WQRequest.post({
        url: "designinformation/upload",
        data
    });
}
export function addfile(data) {
    return WQRequest.post({
        url: "designinformation/addFile",
        data
    });
}
export function addfloder(data) {
    return WQRequest.post({
        url: "designinformation/addfile",
        data
    });
}
export function batchdeleteresouce(data) {
    return WQRequest.post({
        url: "designinformation/batchdeleteresouce",
        data
    });
}
export function editresouce(data) {
    return WQRequest.post({
        url: "designinformation/editresouce",
        data
    });
}
export function getdesigninformationfoldertree(data) {
    return WQRequest.post({
        url: "designinformation/getdesigninformationpage",
        data
    });
}
export function shiftresourcelocation(data) {
    return WQRequest.post({
        url: "designinformation/getdesigninformationfoldertree",
        data
    });
}
export function downfile(data) {
    return WQRequest.get({
        url: "/designinformation/downfile",
        params: data,
        responseType: "blob"
    });
}
export function downfilepdf(data) {
    return WQRequest.get({
        url: "/designinformation/downfile",
        params: data,
        responseType: "blob",
        headers: {
            "Content-Type": "application/pdf;charset=UTF-8"
        }
    });
}
export function downfilexlsl(data) {
    return WQRequest.get({
        url: "/designinformation/downfile",
        params: data,
        responseType: "arraybuffer", //告诉服务器想到的响应格式
        headers: {
            "Content-Type": "application/vnd.ms-excel;application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
        }
    });
}
export function downfolder(data) {
    return WQRequest.get({
        url: "/designinformation/downfolder",
        params: data,
        responseType: "blob"
    });
}
//获取关联设备
export function getrelationequipmentlist(data) {
    return WQRequest.post({
        url: "strategy/getEquipment",
        data
    });
}
//获取设计资料
export function getrelationresourcelist(data) {
    return WQRequest.post({
        url: "designinformation/getdesigninformationpage",
        data
    });
}
//批量删除台账
export function batchdeleteequipmentmanagement(data) {
    return WQRequest.post({
        url: "basicsbelowcarparameter/batchdeleteequipmentmanagement",
        data
    });
}
export function getdesigninformationdetailbyid(data) {
    return WQRequest.post({
        url: "designinformation/selectFolder",
        data
    });
}
export function getFiles(data) {
    return WQRequest.get({
        url: "equipmentmanagement/getFiles",
        params: data
    });
}
export function getFolderId(data) {
    return WQRequest.post({
        url: "equipmentmanagement/getFolderId",
        data
    });
}
export function getequipmenttitle(data) {
    return WQRequest.get({
        url: "basicsbelowcarparameter/getequipmenttitle/" + data
    });
}
